package cn.strive.eams.scrapRequire.controller;

import cn.strive.eams.base.response.JsonResult;
import cn.strive.eams.room.pojo.dto.RoomSaveParam;
import cn.strive.eams.scrapRequire.pojo.dto.ScrapRequireSaveParam;
import cn.strive.eams.scrapRequire.service.ScrapRequireService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Api(tags = "报废申请表")
@RequestMapping("/v1/scrapRequire")
public class ScrapRequireController {
    @Autowired
    ScrapRequireService scrapRequireService;
    @PostMapping("/save")
    @ApiOperation(value="保存报废申请单")
    public JsonResult saveUser(ScrapRequireSaveParam scrapRequireSaveParam){
        log.debug("保存用户:ScrapRequireSaveParam={}",scrapRequireSaveParam);
        scrapRequireService.saveScrapRequireService(scrapRequireSaveParam);
        return JsonResult.ok();
    }
}
